<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            width: 200px;
            height: 200px;
            background-color: pink;
            margin-bottom: 40px;
        }

        .box2{
            width: 200px;
            height: 200px;
            background-color: skyblue;
            margin-top: 30px;
        }
    </style>
</head>
<body>
会取大的margin值 上下会出现
<div class="box1"> margin-bottom: 40px;</div>
<div class="box2"> margin-top: 30px;</div>
</body>
</html>
